#ifndef SCRIPT_LINEEDIT_H
#define SCRIPT_LINEEDIT_H
#include <qlineedit.h>

class ScriptLineEdit : public QLineEdit
{
    Q_OBJECT
public:
	ScriptLineEdit(QWidget* parent = nullptr);
	~ScriptLineEdit();
public:
	void returnForExecute(bool flag);
	QString getErrorMessage()const{return errorMessage;}
public slots:
	void execute();
private:
	void init(const QStringList& input);
private:
	bool connected = false;
	QString errorMessage;
};

#endif
